<?php
class BuildingVo extends SzAbstractMySqlVo
{

    private $decorId;
    private $userId;
    private $buildingDefId;
    private $orient;
    private $effectiveTime;
    private $cutRibbon;
    private $status;

    /**
     * Initialize BuildingVo.
     *
     * @param $decorId
     * @param $userId
     * @param $buildingDefId
     * @param $orient
     * @param $effectiveTime
     * @param $cutRibbon
     * @param $status
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return BuildingVo
     */
    public function __construct($decorId, $userId, $buildingDefId, $orient, $effectiveTime, $cutRibbon, $status, $isInsert = false) {
        $this->decorId = $decorId;
        $this->userId = $userId;
        $this->buildingDefId = $buildingDefId;
        $this->orient = $orient;
        $this->effectiveTime = $effectiveTime;
        $this->cutRibbon = $cutRibbon;
        $this->status = $status;

        $this->isInsert = $isInsert;
        $this->voClassName = 'BuildingVo';
        $this->ormName = 'Building';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'decorId' => $this->getDecorId(),
            'userId' => $this->getUserId(),
            'buildingDefId' => $this->getBuildingDefId(),
            'orient' => $this->getOrient(),
            'effectiveTime' => $this->getEffectiveTime(),
            'cutRibbon' => $this->getCutRibbon(),
            'status' => $this->getStatus(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'decorId' => $this->getDecorId(),
            'userId' => $this->getUserId(),
            'buildingDefId' => $this->getBuildingDefId(),
            'orient' => $this->getOrient(),
            'effectiveTime' => $this->getEffectiveTime(),
            'cutRibbon' => $this->getCutRibbon(),
            'status' => $this->getStatus(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getDecorId(),
            $this->getUserId(),
            $this->getBuildingDefId(),
            $this->getOrient(),
            $this->getEffectiveTime(),
            $this->getCutRibbon(),
            $this->getStatus(),
        );
    }

    public function getDecorId()
    {
        return $this->decorId;
    }

    public function setDecorId($val)
    {
        $this->saveColumnStatus(0, $this->decorId);
        $this->decorId = $val;
    }

    public function getUserId()
    {
        return $this->userId;
    }

    public function setUserId($val)
    {
        $this->saveColumnStatus(1, $this->userId);
        $this->userId = $val;
    }

    public function getBuildingDefId()
    {
        return $this->buildingDefId;
    }

    public function setBuildingDefId($val)
    {
        $this->saveColumnStatus(2, $this->buildingDefId);
        $this->buildingDefId = $val;
    }

    public function getOrient()
    {
        return $this->orient;
    }

    public function setOrient($val)
    {
        $this->saveColumnStatus(3, $this->orient);
        $this->orient = $val;
    }

    public function getEffectiveTime()
    {
        return $this->effectiveTime;
    }

    public function setEffectiveTime($val)
    {
        $this->saveColumnStatus(4, $this->effectiveTime);
        $this->effectiveTime = $val;
    }

    public function getCutRibbon()
    {
        return $this->cutRibbon;
    }

    public function setCutRibbon($val)
    {
        $this->saveColumnStatus(5, $this->cutRibbon);
        $this->cutRibbon = $val;
    }

    public function getStatus()
    {
        return $this->status;
    }

    public function setStatus($val)
    {
        $this->saveColumnStatus(6, $this->status);
        $this->status = $val;
    }

}